package com.acme.bankapp.domain.exceptions;

public class NotEnoughFundsException extends BankException {
	
	private static final long serialVersionUID = 1L;
	protected double amount;

	public NotEnoughFundsException() {
		super();	
		amount = 0;
	}

	public NotEnoughFundsException(String message, Throwable cause, double amount) {
		super(message, cause);		
		this.amount = amount;
	}

	public NotEnoughFundsException(String message, double amount) {
		super(message);	
		this.amount = amount;
	}

	public NotEnoughFundsException(Throwable cause, double amount) {
		super(cause);
		this.amount = amount;
	}
	
	public double getAmount() {
		return amount;
	}
	
}
